﻿package view.task
{
    import com.core.*;
    import com.sh.game.util.*;
    import flash.events.*;
    import morn.core.components.*;
    import view.message.*;

    public class MFItem extends Component
    {
        private var _txt1:Label;
        private var _txtName:Label;

        public function MFItem()
        {
            var _loc_1:Boolean = true;
            mouseEnabled = true;
            mouseChildren = _loc_1;
            this._txt1 = new Label(MColor.getHMTL("[诗篇]", 6) + " <u>玛法诗篇</u>");
            this._txt1.isHtml = true;
            this._txt1.color = MColor.New16;
            this._txt1.align = "left";
            this._txt1.stroke = "0x0";
            this._txt1.addEventListener(MouseEvent.CLICK, this.linkHandler);
            this.addChild(this._txt1);
            return;
        }// end function

        override public function get height() : Number
        {
            return 20;
        }// end function

        private function linkHandler(event:MouseEvent) : void
        {
            var e:* = event;
            Alert2.show("即将传送，是否确认前往！", "温馨提示", ["确定", "取消"], function (param1:int, param2:Object) : void
            {
                if (param1 == 0)
                {
                    ModelProxy.change("mainuiInstance", "enterInstance", 10400);
                }
                return;
            }// end function
            );
            return;
        }// end function

        public function updateCount(param1:Object) : void
        {
            return;
        }// end function

    }
}
